package com.lanyam.travel.base.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-03-21
 */
@TableName("role_menu")
public class RoleMenu extends Model<RoleMenu> {

    private static final long serialVersionUID = 1L;

    @JsonProperty(value="id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @JsonProperty(value="menuId")
    @TableField("menu_id")
    private String menuId;
    
    @JsonProperty(value="roleId")
    @TableField("role_id")
    private String roleId;


    public Integer getId() {
        return id;
    }

    public RoleMenu setId(Integer id) {
        this.id = id;
        return this;
    }


    public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getRoleId() {
        return roleId;
    }

    public RoleMenu setRoleId(String roleId) {
        this.roleId = roleId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RoleMenu{" +
        ", id=" + id +
        ", menuId=" + menuId +
        ", roleId=" + roleId +
        "}";
    }
}
